package com.black.app.service.store;

import com.black.app.domain.req.store.edit.AppStoreAddressesEditReq;
import com.black.app.domain.store.AppStoreAddresses;
import com.baomidou.mybatisplus.extension.service.IService;
import com.black.app.domain.req.store.add.AppStoreAddressesAddReq;
import com.black.app.domain.req.store.query.AppStoreAddressesQueryReq;
import com.black.app.domain.resp.store.AppStoreAddressesResp;
import com.github.pagehelper.PageInfo;

/**
* @author zhous
* @description 针对表【app_store_addresses】的数据库操作Service
* @createDate 2024-10-23 16:07:28
*/
public interface AppStoreAddressesService extends IService<AppStoreAddresses> {


    /**
     * 分页查询
     * @param req
     * @return
     */
    PageInfo<AppStoreAddressesResp> paginationQuery(AppStoreAddressesQueryReq req);

    /**
     * 新增地址
     * @param req
     * @return
     */
    boolean add(AppStoreAddressesAddReq req);

    /**
     * 修改地址
     * @param req
     * @return
     */
    boolean edit(AppStoreAddressesEditReq req);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    AppStoreAddressesResp findByAddressId(Long id);

    /**
     * 根据id删除
     * @param ids
     * @return
     */
    boolean deleteById(Long[] ids);
}
